/***********************************************************************
 * Module:  TypeProjection.java
 * Author:  Lionel
 * Purpose: Defines the Class TypeProjection
 ***********************************************************************/

package projection;

/** @pdOid ca9691ba-05e1-46a0-afe0-dda34d8650e7 */
public class TypeProjection {
   /** @pdOid d79bbb18-8131-491f-a11b-ac703f4b5f25 */
   private int idType;
   /** @pdOid c9282a94-38a4-40e1-af5c-97805b0ec7c8 */
   private String libelleType;

    public void setIdType(int idType) {
        this.idType = idType;
    }

    public void setLibelleType(String libelleType) {
        this.libelleType = libelleType;
    }

    public int getIdType() {
        return idType;
    }

    public String getLibelleType() {
        return libelleType;
    }

   TypeProjection(int id){
       this.idType = id;
       switch(id){
           case 1: this.libelleType = "Court Metrage";break;
           case 2: this.libelleType = "Long Metrage";break;
           default: this.libelleType = "Film";break;
       }
   }
}